package com.itheima.mapper;

import com.itheima.pojo.Menu;
import com.itheima.pojo.Menu2;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper {
    List<Menu2> getMenusByParentId(@Param("id") Integer id);

    void add(Menu menu);


    Menu findById(@Param("id")Integer id);

    Integer menuDeletRole(@Param("id")Integer id);

    void menuDelete(@Param("id")Integer id);

}
